<div class="row">
    <div class="col-xs-12 col-xs-12">
        <div class="widget radius-bordered">
            <div class="widget-header bg-blue">
                <i class="widget-icon fa fa-arrow-down"></i>
                <span class="widget-caption">设置</span>
                <div class="widget-buttons">
                    <a href="#" data-toggle="maximize">
                        <i class="fa fa-expand"></i>
                    </a>
                    <a href="#" data-toggle="collapse">
                        <i class="fa fa-minus"></i>
                    </a>
                    <a href="#" data-toggle="dispose">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="widget-body">
                <div class="form-title">
                    <a href="{:url('Dlc/role/rolelist',array('role_id'=>$role_id))}" class="btn btn-primary" data-loader="App-loader" >
                        <i class="fa fa-mail-reply"></i>返回
                    </a>
                </div>
                <form id="AppForm" action="" method="post" class="form-horizontal" data-bv-message="" data-bv-feedbackicons-valid="glyphicon glyphicon-ok" data-bv-feedbackicons-invalid="glyphicon glyphicon-remove" data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
                    <input type="hidden" name="id" value="{$cache.id}">
                    <input type="hidden" name="roleid" value="{$role_id}">
                    <div class="form-group">
                        <label class="col-lg-2 control-label">管理员昵称<sup>*</sup></label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" name="nickname" placeholder="必填" data-bv-notempty="true" data-bv-notempty-message="不能为空" value="{$cache.nickname}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">管理员登录名<sup>*</sup></label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" name="username" placeholder="必填" data-bv-notempty="true" data-bv-notempty-message="不能为空" value="{$cache.username}">
                        </div>
                    </div>
                    <eq name="password" value=""><div class="form-group">
                        <label class="col-lg-2 control-label">管理员密码<sup>*</sup></label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" name="password" placeholder="必填" data-bv-notempty="true" data-bv-notempty-message="不能为空" value="{$cache.password}">
                        </div>
                    </div><else/>
                    </eq>
                   <!--  <div class="form-group">
                        <label class="col-lg-2 control-label">管理员权限<sup>*</sup></label>
                        <div class="col-lg-4">
                            <select name="roleid" class="form-control"  placeholder="必填"
                                    data-bv-notempty="true"
                                    data-bv-notempty-message="">
                                <option value="">请选择</option>
                                <option value="1" {eq name="vo.role_id" value="$cache.roleid" }selected {/eq}>超级管理员</option>
                                {volist name="list" id="vo"}
                                    <option value="{$vo.role_id}" name="pid" {eq name="vo.role_id" value="$cache.roleid" }selected {/eq} >{$vo.role_name}</option>
                                {/volist}
                            </select>
                        </div>
                    </div> -->

                    <div class="form-group">
                        <label class="col-lg-2 control-label">联系电话<sup>*</sup></label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" name="mobile" placeholder="必填" data-bv-notempty="true" data-bv-notempty-message="不能为空" value="{$cache.mobile}">
                        </div>
                    </div>
                   <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button class="btn btn-primary btn-lg" type="submit">保存</button>&nbsp;&nbsp;&nbsp;&nbsp;
                            <button class="btn btn-palegreen btn-lg" type="reset">重填</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--面包屑导航封装-->
<div id="tmpbread" style="display: none;">{$breadhtml}</div>
<script type="text/javascript">
setBread($('#tmpbread').html());
</script>
<!--/面包屑导航封装-->
<!--表单验证与提交封装-->
<script type="text/javascript">
$('#AppForm').bootstrapValidator({
    submitHandler: function(validator, form, submitButton) {
        var tourl = "{:url('Dlc/admin/adminEdit')}";
        var data = $('#AppForm').serialize();
        $.App.ajax('post', tourl, data, null);
        return false;
    },
});
</script>
<!--/表单验证与提交封装-->
